﻿{{#with dialog}}
{{#equal chat_celltype 2}}
<div class="cell twocolumncell">
    <div class="firstspreadcell {{numberToBgClass chat_cell1bg}}"></div>
    <div class="secondspreadcell {{numberToBgClass chat_cell2bg}}"></div>
    {{{generateDialog chat_content chat_dialogtype}}}
</div>
{{else}}

    {{#equal chat_celltype 3}}
    <div class="cell tworowcell">
        <div class="spreadcellwrapper">
            <div class="firstspreadcell">
                <div class="{{numberToBgClass chat_cell1bg}}"></div>
            </div>
            <div class="secondspreadcell">
                <div class="{{numberToBgClass chat_cell2bg}}"></div>
            </div>
        </div>
        {{{generateDialog chat_content chat_dialogtype}}}
    </div>
    {{else}}
        <div class="cell onecell {{numberToBgClass chat_cell1bg}}">
            {{{generateDialog chat_content chat_dialogtype}}}
        </div>
    {{/equal}}

{{/equal}}
{{/with}}